package com.world.business.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.world.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户
 *
 * @author 邓驴
 * @date 2023/05/13 19:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "User对象", description = "用户表")
public class User extends BaseEntity {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("年龄")
    private Integer age;

    /**
     * 性别，0女，1男，2未知
     */
    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("图片")
    private String picUrl;

    @ApiModelProperty("地区")
    private Long areaId;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("登录账户")
    private String loginName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("盐")
    private String salt;

    @ApiModelProperty("所属教派")
    private Long religiousSectId;

    @ApiModelProperty("天谴值")
    private Long wrathOfHeavenId;

    @ApiModelProperty("信仰id")
    private Long beliefId;

    @ApiModelProperty("所属种族")
    private Long raceId;

    @ApiModelProperty("出生日期")
    private LocalDateTime birthday;

    @ApiModelProperty("生辰八字")
    private String birthBaZi;

    @ApiModelProperty("openid")
    private String openid;

    @ApiModelProperty("境界id")
    private Long realmId;

    @ApiModelProperty("体质id")
    private Long constitutionId;

    @ApiModelProperty("死亡日期")
    private LocalDateTime deathday;

    @ApiModelProperty("死亡八字")
    private String dieBaZi;

    @ApiModelProperty("死亡原因")
    private String dieReason;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("类型")
    private String type;


}
